/*
 * @Author: Wushiqi
 * @Descripttion: 公共接口
 * @Date: 2020-08-26 18:17:42
 * @LastEditor: Wushiqi
 * @LastEditTime: 2021-05-17 16:37:03
 */

import { get, post } from '../../http'

// 登录
const loginAPI = (params) => post('/login', params)
// 登出
const logoutAPI = (params) => post('/logout', params)
// 用户信息和菜单列表
const userMenuAPI = (params) => get('/user', params)
// 操作记录
const operationDataAPI = (params) => get('/operation/operationList', params)
// 数据字典相关数据列表
const getDictListByType = (params) => get('/dict/getDictListByType', params)

export default {
  loginAPI,
  logoutAPI,
  userMenuAPI,
  operationDataAPI,
  getDictListByType
}